Wireless internet-accessing module, host, communication method thereof, and data card

ABSTRACT

A communication method for a host and a wireless Internet access module, and a data card, are provided so that the host implements wireless Internet access with the wireless Internet access module of a secure digital interface. The method includes simulating each port on a wireless Internet access processing function unit in a wireless Internet access module into a secure digital card partition and reporting the secure digital card partition to a host side; receiving downlink interaction information from the host side encapsulated in a secure digital card interface format, decapsulating the downlink interaction information, and delivering the decapsulated downlink interaction information to a corresponding port; and receiving uplink interaction information reported to the host side from each port, encapsulating the received uplink interaction information in the secure digital card interface format, and sending the encapsulated uplink interaction information to the host side.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Application No.PCT/CN2011/000714, filed on Apr. 25, 2011, which claims priority toChinese Patent Application No. 201010154212.7, filed on Apr. 23, 2010,Chinese Patent Application No. 201010193917.X, filed on Jun. 3, 2010,Chinese Patent Application No. 201010193929.2, filed on Jun. 3, 2010,Chinese Patent Application No. 201010193948.5, filed on Jun. 3, 2010,and Chinese Patent Application No. 201010193967.8, filed on Jun. 3,2010, all of which are hereby incorporated by reference in theirentireties.

TECHNICAL FIELD

The present invention relates to the field of communications, and inparticular, to a wireless Internet access module, a communication methodfor a host and a wireless Internet access module, and a data card.

BACKGROUND

With the development of wireless data services, a wireless Internetaccess module is more and more accepted because of its commercialcharacteristics such as considerable uplink and downlink rates,simplicity, and convenience. The wireless Internet access module isgenerally connected to a computer by use of an independent interface,such as, a USB (Universal Serial Bus, universal serial bus) interface, aPCI-E (Peripheral Component Interconnect express, peripheral componentinterconnect express) interface, a Mini PCI-E (mini PCI-E) interface ora PCMIA (Personal Computer Manufacturer Interface Adaptor, personalcomputer manufacturer interface adaptor) interface. The combination ofthe wireless Internet access module and the computer can form a userterminal. However, as user terminal products keep developing to beultrathin and ultra miniature, while the existing wireless Internetaccess module has a large volume and therefore cannot be built into aminiature and ultrathin user terminal.

SUMMARY OF THE INVENTION

Embodiments of the present invention disclose a wireless Internet accessmodule, a communication method for a wireless Internet access module anda host, and a data card.

The communication method for a wireless Internet access module and ahost includes simulating each port on a wireless Internet accessprocessing function unit in a wireless Internet access module into asecure digital card partition and reporting the secure digital cardpartition to a host side. Downlink interaction information is receivedfrom the host side. The received downlink interaction information isencapsulated in a secure digital card interface format. The encapsulateddownlink interaction is decapsulated and the decapsulated downlinkinteraction information is delivered to a corresponding port. Uplinkinteraction information reported to the host side is received from eachport. The received uplink interaction information is encapsulated in thesecure digital card interface format and sent to the host side.

The wireless Internet access module includes a secure digital cardinterface function unit, a wireless Internet access processing functionunit and an adaptation unit. The secure digital card interface functionunit is configured to receive downlink interaction information from thehost side or send uplink interaction information to the host side afterit is detected that an electrical connection is established with a hostside. The wireless Internet access processing function unit isconfigured to process the downlink interaction information from the hostside, so as to implement wireless Internet access. The adaptation unitis configured to decapsulate the downlink interaction informationencapsulated in a secure digital card interface format from the hostside and received by the secure digital card interface function unit, todeliver the decapsulated downlink interaction information to acorresponding port of the wireless Internet access processing functionunit, to receive the uplink interaction information reported to the hostside from the port, to encapsulate the received uplink interactioninformation in the secure digital card interface format, and to send theencapsulated uplink interaction information to the host side through thesecure digital card interface function unit.

The data card has a form of an encapsulating shape of a standard securedigital card or a micro secure digital card or a mini secure digitalcard, includes a 9-pin secure digital card interface, and furtherincludes the foregoing wireless Internet access module.

Through the application of the wireless Internet access module, thecommunication method for a wireless Internet access module and a host,and the data card disclosed by the embodiments of the present invention,the wireless Internet access module of the secure digital card interfaceor the data card may communicate with the host side, so as to accomplishthe wireless Internet access function.

An embodiment of the present invention discloses a communication methodfor a host and a wireless Internet access module, and a hostcommunication module.

The communication method for a host and a wireless Internet accessmodule includes receiving secure digital card partition informationreported by a wireless Internet access module from a secure digital cardinterface. A serial port driver and a modem driver corresponding to thewireless Internet access module are loaded so as to provide a virtualserial port device and modem device for an application layer.Communication between the application layer and the virtual serial portdevice and modem device is mapped to a corresponding secure digital cardpartition of the wireless Internet access module of the secure digitalcard interface.

Another communication method for a host and a wireless Internet accessmodule includes detecting whether the device that accesses the securedigital card interface is a wireless Internet access module of thesecure digital card interface after it is detected that a deviceaccesses a secure digital card interface. If so, secure digital cardpartition information reported from the wireless Internet access moduleof the secure digital card interface is received and a hardware identityID of the wireless Internet access module of the secure digital cardinterface is modified. A serial port device and a modem device createdaccording to the secure digital card partition information and acorresponding serial port driver and modem driver are loaded so as toenable an application layer to establish communication with acorresponding secure digital card partition of the wireless Internetaccess module of the secure digital card interface through the serialport device and the modem device.

A host communication module includes a secure digital card interfaceunit and a disk driver unit, and further includes a virtual bus unit, aserial port driver unit and a modem driver unit. The secure digital cardinterface unit is configured to establish a connection with a wirelessInternet access module of a secure digital card interface. The diskdriver unit is configured to establish a communication connectionbetween the secure digital card interface unit and the virtual bus unit.The virtual bus unit is configured to receive secure digital cardpartition information reported from the wireless Internet access moduleof the secure digital card interface, and enable the serial port driverunit and the modem driver unit. The serial port driver unit and themodem driver unit are configured to provide a virtual serial port deviceand modem device for an application layer. The virtual bus unit isfurther configured to map communication between the application layerand the virtual serial port device and modem device to a correspondingsecure digital card partition of the wireless Internet access module ofthe secure digital card interface.

Another host communication module includes a secure digital cardinterface unit, and a universal serial bus USB driver unit, and furtherincludes a filter driver unit and a bus driver unit. The secure digitalcard interface unit is configured to detect access of a device to asecure digital card interface and establish a connection with thedevice. The USB driver unit is configured to establish a communicationconnection between the secure digital card interface unit and the filterdriver unit. The filter driver unit is configured to detect whether thedevice that accesses the secure digital card interface is a wirelessInternet access module of the secure digital card interface and, if so,to receive secure digital card partition information reported from thewireless Internet access module of the secure digital card interface andto modify a hardware identity ID of the wireless Internet access moduleof the secure digital card interface, so as to enable the bus driverunit. The bus driver unit is configured to create a serial port deviceand a modem device according to the secure digital card partitioninformation and to load a corresponding serial port driver and modemdriver, so as to enable an application layer to establish communicationwith a corresponding secure digital card partition of the wirelessInternet access module of the secure digital card interface through theserial port device and the modem device.

Through the application of the communication method for a host and awireless Internet access module, and the host communication moduledisclosed by the embodiment of the present invention, the host maycommunicate with the wireless Internet access module of the securedigital card interface or the data card, so as to accomplish thewireless Internet access function.

An embodiment of the present invention discloses a wireless Internetaccess method and system for a host device.

The method includes simulating, by a wireless Internet access module, adevice management port and a modem port on a wireless Internet accessprocessing function unit on the wireless Internet access module into asecure digital card partition and reporting the secure digital cardpartition to a host side. The host side receives information of thesecure digital card partition reported by the wireless Internet accessmodule and loads a serial port driver and a modem driver correspondingto the wireless Internet access module. A command or data delivered hisencapsulated by an application layer to the device management port ormodem port into a secure digital card interface format. The encapsulatedcommand or data is mapped to a corresponding secure digital cardpartition of the wireless Internet access module. The wireless Internetaccess module receives the command or data encapsulated in the securedigital card interface format from the host side and decapsulates theencapsulated command or data. The decapsulated command or data istransferred to the corresponding device management port or modem port,so as to manage the wireless Internet access module through the devicemanagement port, or implement dial-up Internet access through the modemport.

The system includes a host device and a data card, in which the datacard is provided with an antenna, a radio frequency unit, and a basebandprocessor, and the data card communicates with the host device by use ofa secure digital interface, and includes a wireless Internet accessmodule. The wireless Internet access module is configured to simulate adevice management port and a modem port on a wireless Internet accessprocessing function unit on the wireless Internet access module into asecure digital card partition and report the secure digital cardpartition to the host device. The host device is configured to receiveinformation of the secure digital card partition reported by thewireless Internet access module, to load a serial port driver and amodem driver corresponding to the wireless Internet access module, toencapsulate a command or data delivered by an application layer to thedevice management port or modem port into a secure digital cardinterface format and to map the encapsulated command or data to acorresponding secure digital card partition of the wireless Internetaccess module.

The wireless Internet access module is further configured to receive thecommand or data encapsulated in the secure digital card interface formatfrom the host device, to decapsulate the encapsulated command or data,and to transfer the decapsulated command or data to the correspondingdevice management port or modem port, so as to manage the wirelessInternet access module through the device management port, or implementdial-up Internet access through the modem port.

Through the application of the wireless Internet access method andsystem for a host device disclosed by the embodiment of the presentinvention, the host device may accomplish the wireless Internet accessfunction with the wireless Internet access module of the secure digitalcard interface or the data card.

An embodiment of the present invention discloses a wireless Internetaccess module, a method for synchronizing data by use of a wirelessInternet access module, and a data card.

The method includes detecting that the wireless Internet access moduleof a secure digital interface is enabled. Dialing is performed accordingto preset dialing information and a corresponding network space issigned into according to preset network space information. Data in thenetwork space and a secure digital storage function unit of the wirelessInternet access module are synchronously updated according to a presetsynchronization policy. The preset dialing information, the presetnetwork space information and the preset synchronization policy areobtained through a secure digital card interface of the wirelessInternet access module.

The wireless Internet access module includes a secure digital cardinterface function unit, a wireless Internet access processing functionunit, and a secure digital storage function unit, and further includes adata synchronization function unit. The secure digital card interfacefunction unit is configured to connect a first host provided with asecure digital card interface. The wireless Internet access processingfunction unit is configured to perform dialing according to presetdialing information and to sign in a corresponding network spaceaccording to preset network space information. The preset dialinginformation and the preset network space information are obtainedthrough the secure digital card interface function unit. The datasynchronization function unit is configured to synchronously update datain the network space and the secure digital storage function unit of thewireless Internet access module according to a preset synchronizationpolicy and the preset synchronization policy is obtained through thesecure digital card interface function unit.

The data card has a form of an encapsulating shape of a standard securedigital card or a micro secure digital card or a mini secure digitalcard, includes a 9-pin secure digital card interface, and furtherincludes the foregoing wireless Internet access module.

Through the application of the wireless Internet access module, themethod for synchronizing data by use of a wireless Internet accessmodule, and the data card disclosed by the embodiment of the presentinvention, information in the secure digital storage space in thewireless Internet access module and information in a specified space atan external network may be synchronized through wireless Internetaccess.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings are included to provide further understandingof the present invention and constitute a part of this specification,but not intended to limit the present invention. In the accompanyingdrawings:

FIG. 1A is a schematic diagram of the form of an existing SD card and a9-pin interface;

FIG. 1B is a schematic diagram of names, types and processed signals ofnine pins of an SD card interface;

FIG. 2 is a schematic structural diagram of a wireless Internet accessmodule disclosed by an embodiment of the present invention;

FIG. 3 is a schematic structural diagram of a wireless Internet accessprocessing submodule in a wireless Internet access module disclosed byan embodiment of the present invention;

FIG. 4 is a schematic diagram of an antenna layout of a wirelessInternet access module disclosed by an embodiment of the presentinvention;

FIG. 5 is a schematic functional structural diagram of a wirelessInternet access module disclosed by an embodiment of the presentinvention;

FIG. 6 is a flow chart of a method in which a wireless Internet accessmodule reports port information to a host side disclosed by anembodiment of the present invention;

FIG. 7 is a schematic structural diagram of a driver at a PC side for auniversal SD card interface device in the prior art;

FIG. 8 is a schematic structural diagram of a driver at a PC side for anSD card interface device disclosed by an embodiment of the presentinvention;

FIG. 9 is a schematic structural diagram of a driver at a PC side foranother SD card interface device disclosed by an embodiment of thepresent invention;

FIG. 10 is a flow chart in which a PC system loads a driver for awireless Internet access module of an SD card interface disclosed by anembodiment of the present invention;

FIG. 11A is a flow chart of a method in which a PC side sends a commandto or writes data into a wireless Internet access module provided bythis embodiment;

FIG. 11B is a flow chart of a method in which a PC side reads a responseor data from a wireless Internet access module provided by thisembodiment;

FIG. 12A is a flow chart of a method in which a wireless Internet accessmodule performs processing according to a command or data delivered by aPC provided by this embodiment;

FIG. 12B is a flow chart of a method in which a wireless Internet accessmodule reports a response or data to a PC side provided by thisembodiment;

FIG. 13 is a flow chart of a method in which application layer softwaremanages a wireless Internet access module of an SD interface through avirtual serial port device provided by this embodiment;

FIGS. 14A and 14B are a flow chart of a method in which applicationlayer software performs a data service with a wireless Internet accessmodule of an SD interface through a virtual Modem device provided bythis embodiment;

FIG. 15 is a schematic structural diagram of another wireless Internetaccess module disclosed by an embodiment of the present invention;

FIG. 16 is a schematic functional structural diagram of the wirelessInternet access module shown in FIG. 15;

FIG. 17 is another schematic functional structural diagram of thewireless Internet access module shown in FIG. 15; and

FIG. 18 is a flow chart of a method in which a wireless Internet accessmodule adopting an SD interface synchronizes data of an electronicdevice and a network space disclosed by an embodiment of the presentinvention.

DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS

In order to make the objectives, technical solutions, and advantages ofthe present invention more comprehensible, the present invention isfurther described in detail in the following through the embodimentswith reference to the accompanying drawings. Herein, the exemplaryembodiments of the present invention and descriptions thereof are onlyintended to explain the present invention, instead of limiting thepresent invention.

A Secure Digital Memory Card (secure digital card), SD card in short,(the name of SD card is adopted in the application document of thepresent invention in the following), has a standard size of 32 mm×24mm×2.1 mm. The SD card in combination with the flash memory card controland MLC (Multilevel Cell, multilevel cell) technology of SanDisk(SanDisk) corporation and the 0.16 u and 0.13 u NAND (Not AND, Not AND)technology of Toshiba (Toshiba) corporation, is connected to a dedicateddriver through a 9-pin interface. Two wiring manners may be provided forthe 9-pin interface, which are a secure digital input/output (SecureDigital Input and Output, SDIO in short) manner and a serial peripheralinterface (Serial Peripheral Interface, SPI in short) manner,respectively. FIG. 1A is a schematic diagram of the form of an SD cardand a 9-pin interface. Names, types and processed signals of the ninepins (pin) are shown in FIG. 1B. In an SDIO mode, the pin No. 1 isconfigured to transmit a card detection signal, and forms a four-bitdata signal together with the pin No. 9, the pin No. 8, and the pin No.7, the pin No. 2 is configured to transmit a command and a response, thepin No. 3 and the pin No. 6 are ground pins, the pin No. 4 is connectedto a power supply, and the pin No. 5 is connected to a clock signal. Inan SPI mode, the pin No. 1 is configured to select a chip, the pin No. 2and the pin No. 7 are configured to input and output data, respectively,the pin No. 3 and the pin No. 6 are ground pins, the pin No. 4 isconnected to a power supply, and the pin No. 5 is connected to a clocksignal. A WP (Write Protect, write protect) terminal shown in FIG. 1Amay have a physical switch structure, which is configured to set orunset the write protect function of the SD card, the specific structureand working principle of which are well known, and are not repeatedherein. The SD card is very widely applied to terminal devices such as adigital camera, a mobile phone and an MID (Mobile Internet Device,mobile Internet device) due to its structural characteristics of beinglightweight and compact. In addition to the standard SD card, a microsecure digital card (Micro Secure Digital Memory Card, MicroSD in short,which may be also referred to as a Trans Flash card or TF card) in asize of 15 mm×11 mm×1 mm and a Mini SD card (mini SD card) in a size of21.5 mm×20 mm×1.4 mm are also widely applied. Furthermore, through theconnection of an adaptor, a MicroSD card or Mini SD card may also beinserted into a standard SD card slot of a terminal device for use.

The technical solution provided by the embodiment of the presentinvention is to integrate a wireless Internet access module in astandard SD card, or integrate it in a MicroSD card or Mini SD card. Insuch a standard SD card or MicroSD card or Mini SD card, a wirelessInternet access module adopting a secure digital interface isintroduced, which may be used as a product form of a data card. Throughthe connection of the adaptor, the MicroSD card or Mini SD card may alsobe inserted into the SD card slot of the terminal device for use, andthe technical solution of the embodiment of the present invention isillustrated in the following by taking the standard SD card as anexample. The solution for integrating the wireless Internet accessmodule in the MicroSD card or Mini SD card may be implemented withreference to the manner for the standard SD. For convenience ofillustration, when not specified or distinguished, the SD card in thefollowing refers to an SD card of a standard size.

FIG. 2 shows a wireless Internet access module 200 provided by anembodiment of the present invention, and the module includes: a securedigital card interface submodule 201, a wireless Internet accessprocessing submodule 202. The wireless Internet access processingsubmodule 202 exchanges information with a user terminal through thesecure digital card interface submodule 201.

The wireless Internet access module 200 is inserted into the userterminal through a secure digital card slot or micro secure digital cardslot, and a wireless connection may be established. A user may performwireless Internet access with the user terminal.

The wireless Internet access module 200 may have a shape of the SD cardshown in FIG. 1A, in which the secure digital card interface submodule201 has nine pins shown in FIG. 1A in terms of the external shape. Thewiring manner of the wireless Internet access module 200 may be the SDIOmanner or the SPI manner. The specific pin signals are alreadyintroduced in FIG. 1B. Moreover, in these two manners, the wiring mannerand the driver manner of each pin in an SD card are also mature in theprior art, which are well known to persons of ordinary skill in the art,and are not repeated again herein.

An implementation manner of the wireless Internet access processingsubmodule 202 may be as shown in FIG. 3, which includes an antenna 301,a radio frequency processing unit 302, an SIM (Subscriber IdentityModule, mobile subscriber identity module) unit 303 and a basebandprocessing unit 304.

The antenna 301 is configured to transmit a received wireless signal tothe radio frequency processing unit 202, or convert a transmit signal ofthe radio frequency processing unit 302 into an electromagnetic wave,and send the electromagnetic wave out.

It should be noted that, the antenna 301 may be set in a motherboard ofthe wireless Internet access module, for example, the antenna 301 may belaid on the motherboard of the wireless Internet access module, as shownin FIG. 4. The antenna 301 is located at the other end of the wirelessInternet access module, that is, the antenna 301 and the secure digitalcard interface are located at two ends of the wireless Internet accessmodule, respectively. Alternatively, the antenna may be furtherconnected to the radio frequency processing unit through a motherboardcontact of the wireless Internet access module.

It should be further noted that, at the place where the antenna is laid,a certain area where component arrangement is forbidden may be reserved.

The radio frequency processing unit 302 is configured to performfrequency selection, amplification, down conversion processing on awireless signal received by the antenna 301, convert the wireless signalinto an intermediate frequency signal or baseband signal and send theintermediate frequency signal or baseband signal to the basebandprocessing unit 304; or, configured to perform up conversion andappropriate amplification on the baseband signal or intermediatefrequency signal sent by the baseband processing unit 304 and send thebaseband signal or intermediate frequency signal out through the antenna301.

The mobile subscriber identity module unit 303 is configured to storeuser parameter information, in which the user parameter information mayinclude: content such as information of a digital mobile phone client,and a key for encryption, which may be provided for a network toidentify the client identity, and encrypt voice information during acall of a client.

It should be noted that, the mobile subscriber identity module unit maybe formed by encapsulating an SIM die (die) through an encapsulatingtechnology.

The baseband processing unit 304 is configured to process the receivedintermediate frequency signal or baseband signal according to theparameter information obtained by the mobile subscriber identity moduleunit 303 and wireless standard protocol requirements; or, receive datainformation from the secure digital card interface submodule 201;perform data recognition on the data information; if the datainformation includes a transmission control command, send thetransmission control command through a transmission control commandport; and if the data information includes a transmission networkmessage, send the transmission network message through a transmissionnetwork message port.

It should be noted that, the wireless Internet access processingsubmodule 202 may further include: a power supply management unit 305and a storage unit 306.

The power supply management unit 305 is configured to convert the powersupply voltage of the user terminal into the voltage required by thebaseband processing unit 304, the storage unit 306, the radio frequencyprocessing unit 302, and the mobile subscriber identity module unit 303,so as to provide a power supply for each unit.

The storage unit 306 is configured to store the transmission networkmessage obtained with the processing of the baseband processing unit 304and an application required for the running of the wireless Internetaccess module.

It can be seen from the above description that, after the wirelessInternet access module 200 is integrated on an SD card, interactionbetween the wireless Internet access module 200 and a PC can only beaccomplished through an interface of the SD card, that is, to beaccomplished in the SDIO or SPI manner. However, in the prior art, an SDcard slot on the PC can only recognize a particular command, so theinformation exchange between the wireless Internet access module 200 andthe PC cannot be accomplished.

In order to solve this technical problem, an embodiment of the presentinvention further proposes the following technical solution. Referringto FIG. 5, FIG. 5 is a schematic functional structural diagram of thewireless Internet access module 200. A secure digital card interfacefunction unit 501 is a software function unit on the secure digital cardinterface submodule 201, and is configured to communicate with a hostside in the existing SDIO or SPI manner through a 9-pin interface of theexisting SD card. This functional unit already exists in the existing SDcard. The wireless Internet access processing function unit 503 is asoftware function unit on the wireless Internet access processingsubmodule 202, and may implement the wireless Internet access functionin the existing manner. Specifically, the wireless Internet accessprocessing function unit 503 may include several ports, which forexample, as shown in FIG. 5, may be a device management port 5031, aModem (modem) port 5033 and other functional ports 5035, respectively.The device management port 5031 is configured to manage the wirelessInternet access processing submodule 202 according to the devicemanagement command and/or data from the host side; the Modem port 5033is configured to implement wireless Internet access functions such asdial-up Internet access and data message transmission according to themodem command and/or data from the host side; the other functional ports5035 are configured to implement other functions, such as, a networkcard function and a GPS function according to other commands and datafrom the host side, which are not limited in the embodiment of thepresent invention. As described above, in the embodiment of the presentinvention, the secure digital card interface function unit 501 and thewireless Internet access processing function unit 503 may both beimplemented by use of the solution in the prior art. Definitely, theembodiment of the present invention does not exclude the separateimprovement of these two functional units, so as to improve therespective function or efficiency.

When the secure digital card interface function unit 501 and thewireless Internet access processing function unit 503 are implemented byuse of the solution in the prior art, or when, although one or both ofthese two functional units are improved, the communication interfacebetween the one or both of these two functional units and otherfunctional units is not changed, the aforementioned solution of theembodiment of the present invention is adopted, the wireless Internetaccess processing submodule 202 is integrated in the wireless Internetaccess module 200 of the SD card interface, and when the wirelessInternet access processing submodule 202 interacts with the host sidethrough the secure digital card interface submodule 201, because thecommunication interface of the wireless Internet access processingsubmodule 202 and the communication interface of the secure digital cardinterface submodule 201 are different, it is required to insert anadaptation unit 505 between the two functional modules, so as to providetranslation, that is, build a bridge, for the communication andinteraction between the wireless Internet access processing submodule202 and the secure digital card interface submodule 201.

The adaptation unit 505 is a software unit or a hardware unit. However,the embodiment of the present invention is exemplarily implemented in asoftware manner. If the adaptation unit 505 is a software unit, theadaptation unit 505 may be installed in a storage unit 306 of thewireless Internet access processing submodule 202, or may also beinstalled in a storage unit configured to store a driver program in thesecure data card interface submodule 201, or a storage space isseparately taken from the wireless Internet access module 200 forinstalling the software of the adaptation unit 505. The adaptation unit505 is configured to: simulate each port on the wireless Internet accessprocessing function unit 503 into an SD card partition, and report theSD card partition to the host side through the secure digital interfacefunction unit 501; receive downlink interaction information encapsulatedin an SD card interface format from the host side through the securedigital interface function unit 501, decapsulate the downlinkinteraction information encapsulated in the SD card interface format,and deliver the corresponding downlink interaction information to eachport according to an interface format of the wireless Internet accessprocessing function unit; and encapsulate, according to the SD cardinterface format, the uplink interaction information reported by eachport to the host side in the interface format of the wireless Internetaccess processing function unit, and send the encapsulated uplinkinteraction information to the host side through the secure digitalinterface function unit 501. The downlink interaction information may bea command or data delivered by the host side to each port of thewireless Internet access processing submodule 202, or data or a responsereported by each port of the wireless Internet access processingsubmodule 202 to the host side. It can be understood that, for theimplementation, the adaptation unit 505 may include a secure digitalcard partition information generation subunit, configured to obtainconfiguration information of each port of the wireless Internet accessprocessing function unit, and generate secure digital card partitioninformation corresponding to each port, respectively, according to theconfiguration information; and a secure digital card partitioninformation report subunit, configured to interact with the host sideaccording to an initialization process of the secure digital card, andreport the secure digital card partition information to the host side;and a secure digital card partition mapping subunit, configured to mapthe generated partitions to corresponding ports of the wireless Internetaccess processing function unit, respectively. Further, the adaptationunit 505 may further include: a decapsulation subunit, configured toparse a data packet of a small computer system interface SCSI writerequest command or a data packet of an SCSI read request command fromthe host side received by the secure digital card interface functionunit; a write port subunit, configured to write a command or data in thedata packet of the SCSI read request command parsed by the decapsulationsubunit into a corresponding port of the wireless Internet accessprocessing function unit; a read port subunit, configured to read thedata packet from the corresponding port of the wireless Internet accessprocessing function unit according to a read command in the data packetof the SCSI read request command parsed by the decapsulation subunit;and an encapsulation subunit, configured to encapsulate the data packetread by the read port subunit from the corresponding port of thewireless Internet access processing function unit into a response datapacket of the SCSI read request command, and report the response datapacket to the host side through the secure digital card interfacefunction unit.

For an example of the specific process in which the adaptation unit 505simulates each port on the wireless Internet access processing functionunit 502 into an SD card partition, and reports the SD card partition tothe host side through the secure digital interface function unit 501,reference may be made to FIG. 6.

Step 601: The adaptation unit 505 detects that a connection isestablished between the secure digital card interface function unit 501and the host side. The shown adaptation unit 505 may judge that aconnection is established between the secure digital card interfacefunction unit 501 and the host side upon detecting that an electricalconnection is established between the wireless Internet access module200 where the adaptation unit 505 is located and the host side. Inpractical use, the wireless Internet access module 200 of the SD cardinterface is inserted into the SD slot or card reader of the host side,so an electrical connection may be established with the host sidethrough the fourth pin in the 9-pin interface. In this case, theadaptation unit 505 may detect that the wireless Internet access module200 is already powered on, and may judge that a connection isestablished between the secure digital card interface function unit 501and the host side.

Step 602: The adaptation unit 505 obtains configuration information ofeach port of the wireless Internet access processing function unit 503,and generates SD card partition information separately corresponding toeach port according to the configuration information. The configurationinformation may, for example, include the port quantity, the port typeand the port arrangement sequence. The SD card partition information isinformation of the partition specification of the SD card itself.

Step 603: The adaptation unit 505 interacts with the host side accordingto the initialization process of the standard SD card, and reports theSD card partition information to the host side.

Step 604: The adaptation unit 505 separately maps a generated partitionto a corresponding port of the wireless Internet access processingfunction unit 503, and allocates a corresponding buffer for each port.The buffer is configured to store uplink interaction information and/ordownlink interaction information between the host side and each port,and should be at least configured to store the uplink interactioninformation. It can be understood that, the buffer may be on thewireless Internet access module, and in this case, the wireless Internetaccess module further includes a storage unit.

As described above, the adaptation unit 505 on the wireless Internetaccess module 200 of the SD card interface reports a partition of the SDcard to the host side, and each partition actually is each port of thewireless Internet access processing function unit 503 on the wirelessInternet access module 200, such as, a device management port 5031, anda Modem port 5033. In contrast, the host side is required to recognizethat only when the wireless Internet access module 200 of the SD cardinterface is a wireless Internet access device can the application layersoftware of the host side use the wireless Internet access function ofthe wireless Internet access module 200. The host being a PC is taken asan example in the following to illustrate a method in which a PCrecognizes that the device inserted into the SD card slot or card readeris a wireless Internet access device.

In the prior art, a schematic structural diagram of a driver at a PCside for a universal SD card interface device is shown in FIG. 7. InFIG. 7, the SD card interface device is inserted into an SD card readeror SD slot. According to different driver manners of the host for the SDcard reader or SD slot, two data paths may be provided, which are R1 andR2, respectively.

For R1, the SD card reader or SD slot is directly connected to a USB(Universal Serial BUS, universal serial bus) bus. Data passes through aUSB bus, a Mass Storage (mass storage) driver, a mid level (Mid level)of an SCSI (small computer system interface, Small Computer SystemInterface) bus, and a Disk (disk) driver for information exchange withthe application layer software.

For R2, the SD card reader or SD slot is directly connected to an MMC(Multi Media Card, multi media card)/SD bus. Data passes through anMMC/SD bus, a block media driver, a mid level of an SCSI bus, and a Diskdriver for information exchange with the application layer software.

No matter whether the path R1 or the path R2 is adopted, in the priorart, the host side can only recognize and use the SD card interfacedevice as a storage device. For the wireless Internet access module 200inserted into the SD card reader or the SD card interface of the SDslot, the adoption of the PC driver structure in the prior art cannotimplement the wireless Internet access function. Therefore, anembodiment of the present invention discloses a driver structure at a PCside, referring to FIG. 8.

It can be known through comparison with FIG. 7 that, in the embodimentshown in FIG. 8, a virtual bus, a Modem driver, and a serial port driverare added to a driver layer of a host. Optionally, when the wirelessInternet access module 200 of the SD card interface may further supporta local area network connection, a network card driver may be furtheradded, and in this case, the other functional ports 5035 on the wirelessInternet access module 200 should include a network card function port,and definitely, other functional ports may further exist. The Modemdriver, the serial port driver and the network card driver may all beprivate drivers of the wireless Internet access module 200 of the SDcard interface, that is, drivers specially developed for the wirelessInternet access module 200 of the SD card interface, or standard driverscarried by a PC operating system itself. Generally speaking, forexample, a Windows operating system may be equipped with some universalperipheral drivers, and if these drivers may recognize each port on thewireless Internet access module 200, these drivers may be used.Exemplarily, the embodiment of the present invention adopts a specialprivate driver.

When the wireless Internet access module 200 of the SD card interface isconnected to a PC, an adaptation layer 505 on the wireless Internetaccess module 200 of the SD card interface reports partition informationof the SD card to the host side. After the wireless Internet accessmodule 200 of the SD card interface is loaded with a Disk driveraccording to the case of the SD card interface device in the prior art,the virtual bus detects the wireless Internet access module 200 of theSD card interface, and a corresponding serial port driver and Modemdriver are automatically loaded, so as to provide a virtual serial portdevice and Modem device for the application layer. Then, through thevirtual bus, the serial port device and Modem device are mapped tocorresponding SD card partitions of the wireless Internet access module200 of the SD card interface. The mapping through the virtual bus refersto that the developer of the virtual bus and the developer of thewireless Internet access module 200 of the SD interface agree in advanceon a rule of a corresponding relationship between a partition andvarious devices of the wireless Internet access module 200 of the SDcard interface, for example, between each partition and the serial portdevice and Modem device, respectively. That is, the virtual bus knowswhich SD partition is a corresponding serial port device, and which SDpartition is a corresponding Modem device. In this way, the applicationlayer operates the virtual serial port device and Modem device,practically, that is, operates a corresponding partition of the wirelessInternet access module 200 of the SD card interface. Also, eachcorresponding partition of the wireless Internet access module 200 ofthe SD card interface is actually each port of the wireless Internetaccess processing function unit 503 on the wireless Internet accessmodule 200, such as, the device management port 5031, and the Modem port5033, so the operating, by the application layer, the virtual serialport device and Modem device is operating the device management port5031 and the Modem port 5033 of the wireless Internet access module 200of the SD card interface. In other words, communication between theapplication layer and the serial port device and modem device is mappedto a corresponding SD card partition of the wireless Internet accessmodule 200 of the SD card interface. The host side in this case may beregarded as being configured with a host communication module, and thehost communication module includes a secure digital card interface unitand a disk driver unit, and further includes a virtual bus unit, aserial port driver unit and a modem driver unit, in which the securedigital card interface unit is configured to establish a connection witha wireless Internet access module of a secure digital card interface;the disk driver unit is configured to establish a communicationconnection between the secure digital card interface unit and thevirtual bus unit; the virtual bus unit is configured to receive securedigital card partition information reported from the wireless Internetaccess module of the secure digital card interface, and enable theserial port driver unit and the modem driver unit; the serial portdriver unit and the modem driver unit are configured to provide avirtual serial port device and modem device for an application layer;and the virtual bus unit is further configured to map communicationbetween the application layer and the virtual serial port device andmodem device to a corresponding secure digital card partition of thewireless Internet access module of the secure digital card interface.The virtual bus unit includes a mapping subunit, and the mapping subunitis configured to, according to a predetermined rule of a correspondingrelationship between the virtual serial port device and modem device andthe corresponding secure digital card partition of the wireless Internetaccess module of the secure digital card interface, map thecommunication between the application layer and the virtual serial portdevice and modem device to the corresponding secure digital cardpartition of the wireless Internet access module of the secure digitalcard interface.

For the path R1, an embodiment of the present invention further providesanother driver structure at a PC side. Referring to FIG. 9, it can beknown from FIG. 9 that, in the embodiment of the present invention, aFilter (filter) driver is added between an SCSI bus mid level and a Diskdriver. Furthermore, a bus driver, a corresponding serial port driverand Modem driver, and optionally, a network card driver are added to theFilter driver in parallel to the Disk driver. The serial port driver,the Modem driver and the network card driver may be private drivers ofthe wireless Internet access module 200 of the SD card interface, orstandard drivers, which are not repeated again herein. The host side inthis case may be regarded as being configured with another hostcommunication module, including a secure digital card interface unit,and a universal serial bus USB driver unit, and further includes afilter driver unit and a bus driver unit, in which the secure digitalcard interface unit is configured to detect access of a device to asecure digital card interface and establish a connection with thedevice; the USB driver unit is configured to establish a communicationconnection between the secure digital card interface unit and the filterdriver unit; the filter driver unit is configured to detect whether thedevice that accesses the secure digital card interface is a wirelessInternet access module of the secure digital card interface, and if yes,receive secure digital card partition information reported from thewireless Internet access module of the secure digital card interface,and modify a hardware identity ID of the wireless Internet access moduleof the secure digital card interface, so as to enable the bus driverunit; and the bus driver unit is configured to create a serial portdevice and a modem device according to the secure digital card partitioninformation, and load a corresponding serial port driver and modemdriver, so as to enable an application layer to establish communicationwith a corresponding secure digital card partition of the wirelessInternet access module of the secure digital card interface through theserial port device and the modem device.

In the case that the driver structure at the PC side of FIG. 9 isadopted, when the wireless Internet access module 200 of the SD cardinterface is connected to a PC, an adaptation layer 505 on the wirelessInternet access module 200 of the SD card interface reports a partitionof the SD card to the host side. The procedure in which the PC systemloads a driver for the wireless Internet access module 200 of the SDcard interface may be shown in FIG. 10.

Step 1001: The system detects that a device accesses the SD cardinterface.

Step 1002: The system loads a USB Mass Storage driver for the device ofthe SD card interface.

Step 1003: The system loads a filter driver onto a USB Mass Storage.

Step 1004: The filter driver uses a customized USB command to querywhether the device is the wireless Internet access module of the SD cardinterface. As an example, the format of this customized USB command maybe as follows.

Field Size (byte) Value bmRequestType 1 0xc0 bRequest 1 0x9a wValue 20x01 wIndex 2 0x00 wlength 2 0x0F

It can be seen from the foregoing description that, the USB command hasa format of a standard USB command, in which it is customized as acommand for querying whether the device is the wireless Internet accessmodule of the SD card interface when the value of the field bRequest is0x9a. This customized value is only used as an example instead of alimitation. Other customized characters may be used as the value of afield to execute this function. The query function may be implementedwith a query submodule included in the filter driver unit.

A return value of the wireless Internet access module of the SD cardinterface for this command may be set to be a character or code of acertain particular format or content, such as, a character string“HW_SD_DATACARD” of the ASCII form; while for other devices, becausethis customized command is not supported, the return value cannotindicate that the devices are the wireless Internet access module of theSD card interface, for example, STALL may be directly returned.

Step 1005: For a device whose return value cannot indicate that thedevice is the wireless Internet access module of the SD card interface,such as, a device directly returning STALL, the filter driver judgesthat the access device is not the wireless Internet access module,directly reports the device to the system as a disk device, and loads aDisk driver carried by the system itself. The driver loading procedureis completed.

Step 1006: For a device whose return value indicates that the device isthe wireless Internet access module of the SD card interface, the filterdriver loads a bus driver for the device by modifying the hardware ID(Identity, identity) of the device. As an example, the hardware ID ofthe device may be modified into a form of “HW_SD/VID_(—)12D1&PID_xxxx”.It can be understood that, for different ports of the wireless Internetaccess module, different hardware IDs may be set. The developer of thefilter driver and the developer of the wireless Internet access module200 of the SD interface agree in advance on a rule of a correspondingrelationship between a partition and various devices, such as, theserial port device and the Modem device, of the wireless Internet accessmodule 200 of the SD card interface. That is, the filter driver knowswhich SD partition is a corresponding serial port device, and which SDpartition is a corresponding Modem device. By modifying the hardware ID,the corresponding relationship no longer requires to be maintained onthe bus driver. This function of modifying the hardware ID may beimplemented with a hardware ID modification submodule included in thefilter driver unit. It can be understood that, the filter driver unitfurther includes a storage device report submodule, configured to, ifthe device that accesses the secure digital card interface is not thewireless Internet access module of the secure digital card interface,report the device as an ordinary storage device of the secure digitalcard interface.

Step 1007: The bus driver creates a corresponding device according tothe SD card partition information reported by the wireless Internetaccess module 200 of the SD card interface, and loads a correspondingdriver. For example, the bus driver queries the number of partitions ofthe wireless Internet access device of the SD interface by use of astandard SCSI command, and creates different device objects according toexpansion type information in the partitions, thereby loading differentdrivers of a Modem, a serial port, and a network card. The driverloading procedure is completed.

After the driver is loaded in any one of the foregoing manners,application software of the application layer, such as, managementsoftware of the wireless Internet access module, may communicate withthe wireless Internet access module 200 of the SD interface. Taking thedriver structure shown in FIG. 8 as an example, at the PC side, thecommunication method is shown in FIG. 11.

FIG. 11A shows a method in which the PC side sends a command to orwrites data into the wireless Internet access module 200. For example,the application layer software at the PC side sends a command to an SDcard partition corresponding to a virtual serial port device of thewireless Internet access module 200 to manage the wireless Internetaccess module 200, or transfers data to an SD card partitioncorresponding to a virtual Modem device of the wireless Internet accessmodule 200, thereby transferring the data to an external network througha wireless Internet access function of the wireless Internet accessmodule 200.

Step 1101: The virtual bus receives a command or data from theapplication layer software. For example, the command may be theforegoing command which the application layer software uses for managingthe wireless Internet access module 200, and the data may be theforegoing data which the application layer software is required totransfer to the external network with the wireless Internet accessmodule 200. It can be understood that, according to different propertiesof the command or data, and different manners in which the currentwireless Internet access module 200 accesses a network, the command ordata may be delivered through a serial port, a Modem port or a networkport.

Step 1102: Encapsulate the command or data into a data packet of an SCSIwrite request command. Specifically, as an example, a field used forindicating an operation type in the SCSI command which is assigned witha value corresponding to a write request, an address buffered by thecommand or data, or information used for indicating the address, and thewrite request command are encapsulated together as a data packet of theSCSI write request command.

Step 1103: The data packet of the SCSI write request command is sent toa corresponding partition interface of the wireless Internet accessmodule 200 through a Disk driver layer, and the corresponding partitionis a partition corresponding to the function or property of the commandor data from the application layer software. According to the existingPC driver architecture, writing data to a partition of an SD card isaccomplished by a Disk driver. The virtual bus is required to first senda data packet required to be written into each partition interface ofthe wireless Internet access module 200 to a Disk driver, and the datapacket is written by the Disk driver. The corresponding partition isdecided according to the property of the command or data in step 1101.For example, when the command is a command which the application layersoftware uses for managing the wireless Internet access module 200, thecorresponding partition is an SD partition corresponding to the devicemanagement port 5031 of the wireless Internet access module 200; andwhen the data is data which the application layer software is requiredto transfer to the external network with the wireless Internet accessmodule 200, the corresponding partition is an SD partition correspondingto the Modem port 5033 of the wireless Internet access module 200.

Through operations of the foregoing step 1101 to step 1103, the commandor data of the application layer software may be written into an SDinterface partition of the wireless Internet access module 200, therebymanaging the wireless Internet access module 200, and using the wirelessInternet access function of the wireless Internet access module 200.

In the procedure of managing the wireless Internet access module 200 orusing the wireless Internet access function of the wireless Internetaccess module 200, it is further required to receive a response from thewireless Internet access module 200, or receive data from the externalnetwork with the wireless Internet access module 200. This requires theapplication layer software to be capable of reading the data on thewireless Internet access module 200. This embodiment is implemented in amanner in which the virtual bus reads data through a corresponding SDcard partition of the wireless Internet access module 200. For example,FIG. 11B shows a method in which a PC side reads a response or data fromthe wireless Internet access module 200 provided by this embodiment.

Step 1104: The virtual bus sends a data packet of the SCSI read requestcommand to a corresponding partition of the wireless Internet accessmodule 200 through a Disk driver layer, and the corresponding partitionis a partition corresponding to the property of the response or datawhich the virtual bus is required to read. Similar to step 1103, forexample, if what the virtual bus is required to read is a response of acommand which the application layer software uses for managing thewireless Internet access module 200, the corresponding partition is anSD partition corresponding to the device management port 5031 of thewireless Internet access module 200; if what the virtual bus is requiredto read is data which the application layer software is required toreceive from the external network with the wireless Internet accessmodule 200, the corresponding partition is an SD partition correspondingto the Modem port 5033 of the wireless Internet access module 200. As anexample, the data packet of the SCSI read request command may include afield used for indicating the operation type in the SCSI command whichis assigned with a value corresponding to the read request, and a bufferaddress pre-allocated by the host side and used for buffering the readdata or information used for indicating the address is encapsulatedtogether therewith.

Step 1105: Receive a response data packet of the read request commandfrom a corresponding partition interface of the wireless Internet accessmodule 200. The response data packet of the read request command isencapsulated with a response of a command (such as, a device managementcommand or dialing command) sent from the application layer software andreported by the wireless Internet access module 200 or data from anexternal network.

Step 1106: Perform SCSI decapsulation on the response data packet of theread request command, and send the response or data in the response datapacket to the application layer software. If the encapsulation isperformed according to the example in step 1104, the data decapsulationand sending may be: after decapsulation, recognizing this operation as aread operation according to the read request, and sending the data,required to be reported, to a buffer address pre-allocated by the hostside.

Through operations of the foregoing step 1104 to step 1106, the responseor data reported by the wireless Internet access module 200 to theapplication layer software may be reported through a corresponding portof the wireless Internet access module 200 via a virtual bus, therebyaccomplishing the management of the wireless Internet access module 200,and the use of the wireless Internet access function of the wirelessInternet access module 200. It can be understood that, the procedureshown in step 1101 to step 1103 of writing a command or data into thewireless Internet access module 200, and the procedure shown in step1104 to step 1106 of reading a response or data from the wirelessInternet access module 200 are corresponding procedures, but areunnecessarily required to be consecutive and corresponding in terms oftime. For example, the write command in the step 1101 to step 1103 areunnecessarily responded in the read procedure shown in subsequent step1104 to step 1106, while may be responded in a certain read procedureafter several read procedures. Definitely, the procedures may also beconsecutive and corresponding in terms of time.

It can be understood that, when the foregoing method is implemented, thevirtual bus unit may further include an application layer interfacesubunit and an encapsulation subunit, in which the application layerinterface subunit is configured to receive a command or data from theapplication layer; the encapsulation subunit is configured toencapsulate the command or the data into a data packet of a smallcomputer system interface SCSI write request command; and the mappingsubunit is configured to send the data packet of the SCSI write requestcommand to the corresponding secure digital card partition of thewireless Internet access module. Further, the virtual bus unit furtherincludes a read command generation subunit, and a decapsulation subunit,in which the read command generation subunit is configured to generate adata packet of a small computer system interface SCSI read requestcommand; the mapping subunit is configured to send the data packet ofthe SCSI read request command to the corresponding secure digital cardpartition of the wireless Internet access module, and read a responsedata packet of the SCSI read request command from the secure digitalcard partition, in which the response data packet of the SCSI readrequest command is encapsulated with a response, to a command sent fromthe application layer, reported by the wireless Internet access module,or data from an external network; the decapsulation subunit isconfigured to perform SCSI decapsulation on the response data packet ofthe SCSI read request command; and the application layer interfacesubunit is configured to send the decapsulated response or data to theapplication layer. Further, the virtual bus unit further includes ajudgment unit, configured to judge whether the SCSI write requestcommand generated by the encapsulation subunit is processed successfullyin the wireless Internet access module, and if successfully, trigger theread command generation subunit to generate the data packet of the SCSIread request command.

It can be understood that, the virtual bus described in the foregoingstep 1101 to step 1106 may be replaced with a bus driver when the PCside driver structure shown in FIG. 9 is adopted. The described virtualserial port device and the virtual Modem device are the serial portdevice and modem device created by the bus driver according to the SDcard partition information when the PC side driver structure shown inFIG. 9 is adopted. The virtual bus, the virtual serial port device, thevirtual Modem device, and the virtual network port mentioned in eachembodiment described in the following may also be replaced withreference to this corresponding relationship, thereby obtaining anembodiment when the PC side driver structure shown in FIG. 9 is adopted.For simplicity, no separate description is provided again.

As described in the foregoing when a schematic functional structuraldiagram of the wireless Internet access module 200 shown in FIG. 5 isdiscussed, in the solution of the embodiment of the present invention,in a manner that the adaptation unit 505 is set in the wireless Internetaccess module 200, the correspondence between an SD interface partitionand each port on the wireless Internet access processing function unit502 in the wireless Internet access module 200 is implemented, andtranslation and transmission of a command or data are accomplished.Specifically, at a side of the wireless Internet access module 200,corresponding to the method shown in FIG. 11, the communication methodfor the wireless Internet access module 200 of the SD interface and thePC side is shown in FIG. 12A.

Step 1201: An adaptation unit receives a data packet of a write requestcommand from the PC side through a certain SD interface partition. Thecertain partition is one of SD interface partitions reported by theadaptation unit to the PC side. The specific partition depends upon apartition through which the PC side delivers the data packet of thewrite request command. Specifically, reference may be made to thedescription of step 1103 in FIG. 11A.

Step 1202: Parse the data packet of the write request command, transferthe parsed command or data to a port corresponding to the SD interfacepartition on the wireless Internet access processing function unit 502.The data packet of the write request command is encapsulated in an SDinterface format in the delivery procedure at the PC side, and theadaptation unit 505 decapsulates the data packet of the write requestcommand, and parses the command or data in the data packet. For example,the command or data may be a command for managing the wireless Internetaccess module 200, or data which is required to be sent to the externalnetwork with the wireless Internet access module 200. According todifferent partition interfaces received in the data packet of the writerequest command in step 1201, the adaptation unit sends the partitioninterfaces to corresponding ports. The corresponding relationshipbetween a partition interface and a port is already bound when theadaptation unit reports an SD interface partition to the PC side. Fordetails, reference may be made to the foregoing corresponding partduring the description of FIG. 6.

Step 1203: The port performs corresponding processing according to thecommand or data. The port may be the device management port 5031 or theModem port 5033. The performing the corresponding processing accordingto the command or data may be: for example, if the command is a commandsent to the device management port 5031 for managing the wirelessInternet access module 200, the device management port 5031 performs acorresponding setting on the wireless Internet access module 200according to the command. If the data is data sent to the Modem port5033 and required to be sent to the external network, the Modem port5033 performs modulation according to the data, and sends the modulateddata packet.

Step 1204: If the processing generates a corresponding response, write adata packet of the response into a buffer of the port. It can beunderstood that, each operation does not necessarily generate responsedata, so this step is an optional step. The response may be an operationresult response to an operation command, or a data response from theexternal network, or a data request from the external network. Theseresponses may be regarded as responses of the command or data deliveredby the application layer software. The buffer is a buffer allocated foreach port by the adaptation unit 505 described in the foregoing step604.

Through operations of the foregoing step 1201 to step 1204, the commandor data from the PC side may be written into a corresponding port of thewireless Internet access module 200, thereby managing the wirelessInternet access module 200, and using the wireless Internet accessfunction of the wireless Internet access module 200.

In the procedure of managing the wireless Internet access module 200 orusing the wireless Internet access function of the wireless Internetaccess module 200, it is further required to report a response from thewireless Internet access module 200, or data received from the externalnetwork with the wireless Internet access module 200, to the PC side.FIG. 12B shows a method in which the wireless Internet access module 200reports a response or data to a PC side provided by this embodiment.

Step 1205: An adaptation unit receives a data packet of a read requestcommand from the PC side through a certain SD interface partition. TheStep is similar to step 1201, and the difference is that a data packetof a read request command is received in this step.

Step 1206: Read a data packet from a buffer of a port corresponding tothe partition. The data packet in the buffer is the data packet storedin step 1204. The data packet may be a data packet of an operationresult response to an operation command, or a data packet of a dataresponse from the external network, or a data packet of a data requestfrom the external network.

Step 1207: Encapsulate the read data packet into a response data packetof the read request command, and send the response data packet to thehost side.

Through operations of the foregoing step 1205 to step 1207, each port inthe wireless Internet access processing function unit 503 in thewireless Internet access module 200 may report a response or data to thePC side with the adaptation unit 505, thereby accomplishing themanagement of the wireless Internet access module 200, and the use ofthe wireless Internet access function of the wireless Internet accessmodule 200. It can be understood that, the procedure shown in step 1201to step 1204, and the procedure shown in step 1205 to step 1207 arecorresponding procedures, but are unnecessarily required to beconsecutive and corresponding in terms of time. Definitely, theprocedures may also be consecutive and corresponding in terms of time.

It can be understood that, with the application of the wireless Internetaccess module 200 of the SD interface, and the PC side driver structuredisclosed by the embodiment of the present invention, by combining themethod shown in FIG. 11 and the method shown in FIG. 12, thecommunication between the application layer software on the PC and eachport in the wireless Internet access processing function unit 503 in thewireless Internet access module 200 may be implemented, therebyaccomplishing the management of the wireless Internet access processingfunction unit 503 by the application layer software, and the use of thewireless Internet access function of the wireless Internet access module200.

Next, FIG. 13 and FIG. 14 further provide an more specific embodiments,so as to more elaborately illustrate a method for using a wirelessInternet access module 200 of an SD interface disclosed by theembodiment of the present invention.

FIG. 13 shows a method in which application layer software manages awireless Internet access module 200 of an SD interface through a virtualserial port device.

Step 1301: The application layer software opens a virtual serial portdevice, and delivers an AT command. When the PC side driver structureshown in FIG. 8 or FIG. 9 is adopted, the application layer software,for example, Modem management software, sees a virtual serial portdevice and Modem device such as a serial port driver and a Modem driver.The AT commands (AT Commands) is a command language used for a modem. ATis Attention, and a user may control aspects such as a call, a shortmessage, a contact list, a data service, and a fax through an ATinstruction. At the beginning of the nineties, the AT instruction isonly used for a Modem operation. There is no precedent for controlling amobile phone text message, and only a protocol called SMS Block Mode isdeveloped for complete control with a terminal device or computer. Theprotocol is invented by Hayes corporation, and currently has become afactual standard and a modem command language adopted by all modemmanufacturers. Each command begins with letters “AT”, contributing tothe name thereof. AT is followed by letters and numbers for indicatingspecific functions. Years later, major mobile phone manufacturers suchas Nokia, Ericsson, Motorola and HP (HP) jointly develop a whole set ofAT instructions for GSM, which includes the SMS control. The ATinstruction is evolved on this basis and is added into the GSM07.05standard and the GSM07.07 standard. This embodiment does not limit whichversion of standard is adopted by the AT command or even whether astandard technology is adopted, as long as the wireless Internet accessmodule 200 can be managed.

Step 1302: A virtual bus obtains the AT command, and encapsulates the ATcommand into a data packet of an SCSI write request command.

Step 1303: The virtual bus sends the data packet to a Disk driver layer,and requests to write data into a corresponding partition.

Step 1304: A Disk driver delivers the data packet to a partitioninterface corresponding to the device management port 5031 of thewireless Internet access module 200 of the SD interface.

Step 1305: The wireless Internet access module of the SD interfaceobtains the data packet from the partition interface, and the adaptationunit 505 parses the data packet and then obtains the AT command.

Step 1306: The device management port 5301 of the wireless Internetaccess module of the SD interface manages the wireless Internet accessmodule 200 according to the AT command.

Step 1307: A buffer corresponding to the device management port 5301buffers response information of the AT command. At this time, a commanddelivery process ends.

The subsequent steps are steps of reading the response to the commanddelivered in the foregoing step 1301 to step 1307. A correspondingrelationship exists between the subsequent steps and the previous steps,but the steps are not required to be closely consecutive in terms oftime, that is, the response to the command delivered in step 1301 tostep 1307 is unnecessarily read in the following step 1308 to step 1313.

Step 1308: The virtual bus waits for a processing result of the SCSIwrite request command.

Step 1309: The virtual bus judges whether the SCSI write request commandis processed successfully, and if successfully, the process proceeds tostep 1310; and otherwise, the process of this method is ended. Thejudgment of whether the SCSI write request command is processedsuccessfully is made in a manner in the SCSI command specification, forexample, the judgment by use of an ACK packet.

Step 1310: The virtual bus delivers a standard SCSI read requestcommand.

Step 1311: The adaptation unit 505 encapsulates AT command responseinformation in a buffer queue corresponding to the device managementport 5301 into a response to the SCSI read request command and sends theresponse to the virtual bus.

Step 1312: The virtual bus parses the AT command response information inthe response of the read request command.

Step 1313: The virtual bus feeds back a response result of the ATcommand to the application layer software through the virtual serialport device.

Through the foregoing step 1301 to step 1313, the application layersoftware may manage the wireless Internet access module 200 of the SDinterface.

FIG. 14 shows a method in which application layer software performs adata service with a wireless Internet access module 200 of an SDinterface through a virtual Modem device.

Step 1401: The application layer software initiates a dialing operationthrough the virtual modem device, and performs a data service after thedialing operation is initiated successfully. In this step, theapplication layer software practically only selects either initiating adialing operation or performing a data service in the procedure ofdelivering data once. The initiating a dialing operation may be:accepting an operation of a user to initiate dialing, or dialing in anautomatic redial procedure, or automatic dialing after detecting thatthe network is disconnected, which is not limited in this embodiment.The data service is a service of exchanging a data message with theexternal network in a normal Internet access procedure.

Step 1402: The virtual bus obtains a dialing command or data used for adata service delivered by the modem device, and encapsulates the dialingcommand or data into a data packet of the SCSI write request command.

Step 1403: The virtual bus sends the encapsulated data packet of theSCSI write request command to a Disk driver, and requests to write datainto a corresponding partition.

Step 1404: The Disk driver delivers the data packet of the SCSI writerequest command to a corresponding partition interface of the wirelessInternet access module 200 of the SD interface. The correspondingpartition interface is generally a partition interface corresponding tothe Modem port.

Step 1405: After obtaining the data packet of the SCSI write requestcommand from the partition interface, the adaptation unit 505 of thewireless Internet access module 200 of the SD interface parses thedialing command or data used for a data service.

Step 1406: The Modem port judges whether this operation is a dialingcommand. If it is the dialing command, the process continues to executestep 1407; and otherwise, it is a data service by default, and theprocess skips to step 1410.

Step 1407: The wireless Internet access module 200 of the SD interfaceinitiates dialing according to the dialing command. Specifically, it isthe Modem port 5031 in the wireless Internet access processing functionmodule 503 on the wireless Internet access module 200 of the SDinterface that initiates the dialing.

Step 1408: The wireless Internet access module 200 judges whether thisdialing is successful, and if successful, the process continues toexecute step 1409; and otherwise, this dialing is ended. Alternatively,if the wireless Internet access module 200 is configured with anautomatic redialing function, this dialing may not be ended, and theprocess skips to step 1407 to repeat dialing, until the dialing issuccessful, or other dialing stop conditions set on the wirelessInternet access module 200 are satisfied, for example, all consecutive10 times of dialing fail.

Step 1409: The wireless Internet access module device of the SDinterface sets a partition corresponding to the modem to a data mode.Moreover, the process proceeds to step 1401, and the application layersoftware may begin a data service.

Step 1410: The wireless Internet access module 200 of the SD interfaceperforms a data service according to the data. Moreover, the processproceeds to step 1401, and the application layer software may continueto perform a data service according to the foregoing steps.

The subsequent steps are steps of reading the response of the dialingcommand or the data received from the external network in the dataservice delivered in the foregoing step 1401 to step 1410. Acorresponding relationship exists between the subsequent steps and theprevious steps, but the steps are not required to be closely consecutivein terms of time, that is, the response to the data delivered in step1401 to step 1410 is unnecessarily read in the following step 1411 tostep 1417.

Step 1411: The virtual bus waits for a processing result of the SCSIwrite request.

Step 1412: The virtual bus judges whether the SCSI write request commandis processed successfully, and if successfully, the process proceeds tostep 1310; and otherwise, the process of this method is ended. Thejudgment may also be performed in, for example, an ACK packet manner.

Step 1413: The virtual bus delivers a standard SCSI read requestcommand.

Step 1414: The adaptation unit 505 of the wireless Internet accessmodule 200 of the SD interface transfers data required to be reported asa response data packet of the read request command to the virtual busaccording to the read request command.

Step 1415: The virtual bus parses the response data packet of the readrequest command, and obtains the reported data.

Step 1416: The virtual bus uploads the reported data to the virtualmodem device.

Through the foregoing step 1401 to step 1417, the application layersoftware may initiate dialing for the wireless Internet access module200 of the SD interface, and exchanges data with the external networkthrough the wireless Internet access function of the wireless Internetaccess module 200.

The wireless Internet access module 200 of the SD interface mentioned ineach of the foregoing methods is the wireless Internet access moduleshown in FIG. 2, whose schematic functional structural diagram is shownin FIG. 5. Practically, the wireless Internet access module may beintegrated with a storage function of an SD card. As shown in FIG. 15, awireless Internet access module 1500 is formed of a secure digital cardinterface submodule 1501, a wireless Internet access processingsubmodule 1502 and a secure digital storage submodule 1503. The securedigital card interface submodule 1501 and the wireless Internet accessprocessing submodule 1502 are the same as the secure digital cardinterface submodule 201 and the wireless Internet access processingsubmodule 202 shown in FIG. 2. The secure digital storage submodule 1503is the same as the storage module of an SD card in the prior art.Correspondingly, a schematic functional structural diagram shown in FIG.15 is as shown in FIG. 16. A secure digital card interface function unit1601 and a wireless Internet access processing function unit 1603 arethe same as the secure digital card interface function unit 501 and thewireless Internet access processing function unit 503 in FIG. 5, inwhich a device management port 16031, a Modem port 16033 and otherfunctional ports 16035 in the wireless Internet access processingfunction unit 1603 are also the same as the device management port 5031,the Modem port 5033 and the other functional ports 5035 in the wirelessInternet access processing function unit 503 in FIG. 5. A secure digitalstorage function unit 1607 shown in FIG. 16 is implemented by use of astorage function unit in an existing SD card. One or no communicationchannel may exist between the secure digital storage function unit 1607and the wireless Internet access processing function unit 1603. Theadaptation unit 1605 shown in FIG. 16, in addition to being equippedwith the function of the adaptation unit 505 shown in FIG. 5, is furtherconfigured to report the secure digital storage function unit to the PCside as an SD interface partition of the wireless Internet access module1500 of the SD interface, and in the procedure of exchanging data withthe PC side, transparently transmit data delivered by the PC into an SDinterface partition corresponding to the secure digital storage functionunit, so as to implement the storage function of the existing SD card.

The wireless Internet access module 1500 of the SD interface may be usedon hosts such as a PC and a smart mobile phone which may run applicationsoftware to manage the wireless Internet access module. However, in manyconsumer electronics products (electronic products such as a camera anda digital photo frame) integrated with an SD slot or card reader butequipped with no complex device management and network managementfunctions, the function of the device management port and the functionof the Modem port of the wireless Internet access module 1500 of the SDinterface will become unusable without the support of the applicationsoftware at the host side, and the wireless Internet access module 1500of the SD interface will become an ordinary SD card device.

In order to enable ordinary consumer electronics products (electronicproducts such as a camera and a digital photo frame) to directly accessthe external network through the wireless Internet access device of theSD interface, so as to change the current situation that the dataexchange between this type of consumer electronics products and anetwork has to depend on the use of a PC or smart mobile phone, anembodiment of the present invention further improves the wirelessInternet access module 1500 of the SD interface. Referring to FIG. 17,it can be known through comparison with FIG. 16 that, on the basis ofthe functional structure of the wireless Internet access module 1500 ofthe SD interface shown in FIG. 16, in FIG. 17, a data synchronizationfunction unit 1709 is added, and other functional units including asecure digital interface function unit 1701 and a secure digital storagefunction unit 1707 are the same as the secure digital interface functionunit 1601 and the secure digital storage function unit 1607 in FIG. 16,respectively. The data synchronization function unit 1709 is configuredto, when it is detected that data of the secure digital storage functionunit 1707 or the external network space bound to the secure digitalstorage function unit 1707 is changed, synchronize the data according toa preset synchronization policy. Compared with the wireless Internetaccess processing function unit 1603, the improvement of the wirelessInternet access processing function unit 1703 lies in performingautomatic dialing automatically according to the preset dialinginformation under the circumstance of detecting that the wirelessInternet access module 1500 is powered on. The adaptation unit 1705 isfurther required to report the data synchronization function unit 1709as an SD partition, so that the host side may set the datasynchronization function unit 1709, and preset the synchronizationpolicy. It can be understood that, the presetting the synchronizationpolicy on the data synchronization function unit 1709, and thepresetting the dialing information on the wireless Internet accessprocessing function unit 1703 may both adopt the methods in theforegoing embodiments where the PC side application software manages andsets the wireless Internet access module. That is to say, the presetsynchronization policy and dialing information both require to beimplemented first by using the wireless Internet access module firstthrough the methods of the foregoing various embodiments in FIG. 2 toFIG. 16 on electronic devices (such as a PC or smart mobile phone)equipped with complex device management and network managementfunctions.

After the synchronization policy is preset on the data synchronizationfunction unit 1709, and the dialing information is preset on thewireless Internet access processing function unit 1703, the wirelessInternet access module of the SD interface may be inserted into an SDcard slot of an ordinary consumer electronics product (electronicproducts such as a camera and a digital photo frame) for use. In thefollowing, a digital camera is taken as an example for the consumerelectronics product to illustrate the use method.

Refer to FIG. 18.

Step 1801: Enable a wireless Internet access module of an SD interface.The wireless Internet access module of the SD interface is inserted intoan SD card slot of the digital camera, the power supply of the digitalcamera is switched on, and the wireless Internet access module of the SDinterface may be enabled. Definitely, the operating system or hardwarefacility of the digital camera may also be set with an option aboutwhether the SD interface device is activated, and at this time, a devicewith the SD interface activated needs to be selected, so that thewireless Internet access module of the SD interface can be enabled.

Step 1802: The wireless Internet access processing function unit 1703automatically performs dialing according to preset dialing information.

Step 1803: The data synchronization function unit 1709 detects theconnection state of the network.

Step 1804: If the network is already successfully connected, the processcontinues to execute step 1805; and otherwise, the process returns tostep 1803.

Step 1805: The data synchronization function unit 1709 automaticallysigns in the network space according to network space information presetin the module. The network space may be, for example, a personalhomepage, a QQ space, a Kaixin001 space, a Facebook account space, andan MSN account space of a user, or a certain space on a personal server,or a network space opened and shared by others.

Step 1806: The data synchronization function unit 1709 maps data of thenetwork space to a specified directory of the secure digital storagefunction unit 1707. In this way, an operation on data in the specifieddirectory may be synchronized to a network space mapped to the specifieddirectory.

Step 1807: If the data synchronization function unit 1709 detects thatthe network space data is changed, step 1809 is executed.

Step 1808: If the data synchronization function unit 1709 detects thatthe user writes new data into the secure digital storage function unit1707, step 1809 is executed.

When any one of the scenarios in step 1807 and step 1808 occurs, step1809 is executed. Step 1809: The data synchronization function unit 1709examines whether data synchronization is required according to thepreset synchronization policy. The preset synchronization policy may bereal-time synchronization, in which synchronization is initiated uponthe change of any data in the network space and the secure digitalstorage function unit 1707; or timed synchronization, in which, forexample, synchronization is initiated at three o'clock in the afternoonon the same day; or periodic synchronization, in which, for example,synchronization at eight o'clock in every Wednesday morning; or datadirectory synchronization, in which, for example, only data under adirectory “my photo” in the secure digital storage function unit 1707 issynchronized with data under a directory “my photo album” in the networkspace; or data type synchronization, in which, for example, only apicture format document in the secure digital storage function unit 1707is synchronized with a picture format document in the network space,while document format or audio/video media documents are notsynchronized.

Step 1810: If synchronization is required, the process continues toexecute step 1811; and otherwise, the process returns to step 1809.

Step 1811: The data synchronization function unit 1709 detects the stateof the connection with the network space.

Step 1812: If the connection is normal, the process continues to executestep 1813; and otherwise, this synchronization operation is ended.

Step 1813: The data synchronization function unit 1709 synchronizes thedata of the secure digital storage function unit 1707 to the networkspace, or synchronizes the data of the network space to the securedigital storage function unit 1707.

Through the application of the wireless Internet access module of the SDinterface provided by the embodiment of the present invention, and byuse of the method shown in FIG. 18, data of consumer electronicsproducts (electronic products such as a camera and a digital photoframe) without the complex device management and network managementfunctions and data of the network space may be directly synchronizedwithout the use of an electronic device equipped with the Internetaccess terminal capability such as a PC or smart mobile phone.

The foregoing embodiments of the present invention introduce severalwireless Internet access modules with an SD interface, and thestructures of functional modules in the wireless Internet access modulesare improved; a PC side driver structure improved by an embodiment ofthe present invention is adopted, so that the communication between thewireless Internet access module of the SD interface and the applicationlayer software at the PC side may be implemented, and the applicationlayer software may manage and set the wireless Internet access module ofthe SD interface, and access the external network with the wirelessInternet access module. Further, the improved wireless Internet accessmodule of the SD interface may be further integrated with a storagefunction of an SD card; the wireless Internet access module of the SDinterface which is improved again may further enable the data onconsumer electronics products (electronic products such as a camera anda digital photo frame) without the complex device management and networkmanagement function to be directly synchronized with that of the networkspace, thereby greatly improving user experiences and expanding wirelesscommunication services. The wireless Internet access modules in theforegoing embodiments may all be set in a data card product which has aform of an encapsulating shape of a standard secure digital card or amicro secure digital card or a mini secure digital card, and includes aS-pin secure digital card interface.

Persons of ordinary skill in the art should understand that all or apart of the steps of the methods according to the embodiments may beimplemented by a program instructing relevant hardware. The program maybe stored in a computer readable storage medium, and the storage mediummay include a ROM, a RAM, a magnetic disk, or an optical disk.

The objectives, technical solutions, and beneficial effects of thepresent invention have been described in further detail through theforegoing specific embodiments. It should be understood that theforegoing descriptions are merely specific embodiments of the presentinvention, but not intended to limit the protection scope of the presentinvention. Any modification, equivalent replacement, or improvement madewithout departing from the spirit and principle of the present inventionshould fall within the protection scope of the present invention.

What is claimed is:
 1. A wireless Internet access device, comprising: aprocessor; and a computer-readable storage memory storing a program tobe executed by the processor, the program including a plurality ofsoftware modules including: a secure digital card interface softwaremodule, wherein the secure digital card interface software module isconfigured to, after it is detected that an electrical connection isestablished with a host side, receive downlink interaction informationfrom the host side or send uplink interaction information to the hostside; a wireless Internet access processing software module, wherein thewireless Internet access processing software module is configured toprocess the downlink interaction information from the host side, so asto implement wireless Internet access; and an adaptation softwaremodule, wherein the adaptation software module is configured todecapsulate the downlink interaction information encapsulated in asecure digital card interface format from the host side and received bythe secure digital card interface software module, to deliver thedecapsulated downlink interaction information to a corresponding port ofthe wireless Internet access processing software module, to receive theuplink interaction information reported to the host side from the port,to encapsulate the received uplink interaction information in the securedigital card interface format, and to send the encapsulated uplinkinteraction information to the host side through the secure digital cardinterface software module, wherein the adaptation software modulecomprises: a secure digital card partition information generationsoftware sub-module, configured to obtain configuration information ofeach port of the wireless Internet access processing software module,and to generate secure digital card partition information separatelycorresponding to each port according to the configuration information; asecure digital card partition information report software sub-module,configured to interact with the host side according to an initializationprocess of a secure digital card, and to report the secure digital cardpartition information to the host side; and a secure digital cardpartition mapping software sub-module, configured to separately map agenerated partition to a corresponding port of the wireless Internetaccess processing software module.
 2. The wireless Internet accessdevice according to claim 1, wherein the wireless Internet accessprocessing software module comprises a device management port and amodem port; wherein the device management port is configured to receivethe decapsulated downlink interaction information from the host sidesent by the adaptation software module, wherein the downlink interactioninformation from the host side comprises a device management command andto manage the wireless Internet access software module according to thedevice management command; wherein the wireless Internet accessprocessing software module is further configured to send the uplinkinteraction information reported to the host side to the adaptationsoftware module, wherein the uplink interaction information reported tothe host side comprises a response to the device management command;wherein the modem port is configured to receive the decapsulateddownlink interaction information from the host side sent by theadaptation software module, wherein the downlink interaction informationfrom the host side comprises a modem command or data sent to an externalnetwork, and implement wireless Internet access according to the modemcommand or the data sent to the external network; and wherein the modemport is further configured to send the uplink interaction informationreported to the host side to the adaptation software module, wherein theuplink interaction information reported to the host side comprises aresponse to the modem command or data from the external network.
 3. Thewireless Internet access device according to claim 1, further comprisinga storage device, wherein the storage device is configured to provide abuffer for each port according to allocation of the adaptation softwaremodule and the buffer is configured to store the uplink interactioninformation reported by each port to the host side.
 4. The wirelessInternet access device according to claim 1, wherein the adaptationsoftware module comprises: a decapsulation software sub-module,configured to parse a data packet of a small computer system interfaceSCSI write request command or a data packet of an SCSI read requestcommand from the host side received by the secure digital card interfacesoftware module; a write port software sub-module, configured to write acommand or data in the data packet of the SCSI read request commandparsed by the decapsulation software sub-module into a correspondingport of the wireless Internet access processing software module; a readport software sub-module, configured to read the data packet from thecorresponding port of the wireless Internet access processing softwaremodule according to a read command in the data packet of the SCSI readrequest command parsed by the decapsulation software sub-module; and anencapsulation software sub-module, configured to encapsulate the datapacket read by the read port software sub-module from the correspondingport of the wireless Internet access processing software module into aresponse data packet of the SCSI read request command, and report theresponse data packet to the host side through the secure digital cardinterface software module.
 5. The wireless Internet access deviceaccording to claim 1, further comprising a secure digital storagesoftware module, configured to store information, wherein the adaptationsoftware module is further configured to use the secure digital storagesoftware module also as at least one secure digital card partition andreport the at least one secure digital card partition to the host side.6. A data card, having a form of an encapsulating shape of a standardsecure digital card or a micro secure digital card or a mini securedigital card, comprising a 9-pin secure digital card interface, andfurther comprising the wireless Internet access device according toclaim
 1. 7. A data card, having a form of an encapsulating shape of astandard secure digital card or a micro secure digital card or a minisecure digital card, comprising a 9-pin secure digital card interface,and further comprising the wireless Internet access device according toclaim
 2. 8. A data card, having a form of an encapsulating shape of astandard secure digital card or a micro secure digital card or a minisecure digital card, comprising a 9-pin secure digital card interface,and further comprising the wireless Internet access device according toclaim
 3. 9. A data card, having a form of an encapsulating shape of astandard secure digital card or a micro secure digital card or a minisecure digital card, comprising a 9-pin secure digital card interface,and further comprising the wireless Internet access device moduleaccording to claim
 4. 10. A data card, having a form of an encapsulatingshape of a standard secure digital card or a micro secure digital cardor a mini secure digital card, comprising a 9-pin secure digital cardinterface, and further comprising the wireless Internet access deviceaccording to claim 5.